/**
 * @Title: DictionaryDao
 * @Package cn.com.yiqi.wsc.dao.dictionary
 * @Description: TODO
 * Copyright: Copyright (c) 2016
 * Company: 成都壹柒互动科技有限公司
 * @author 会员系统组-胥钰淋
 * @date 2017/3/6 10:44
 * @version V1.0
 */
package cn.com.yiqi.wsc.dao.dictionary;

import cn.com.artemis.framework.base.commons.persistence.CrudDao;
import cn.com.yiqi.wsc.dao.dictionary.entity.DictionaryEntity;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author 会员系统组-胥钰淋
 * @ClassName: DictionaryDao
 * @Description: TODO
 * @date 2017/3/6 10:44
 */
@Repository
public interface DictionaryDao extends CrudDao<DictionaryEntity> {

    List<DictionaryEntity> selectDictionaryByCode(@Param("code") String code);


    /**
     * 根据pCode 查询字典
     *
     * @param parentCode pCode
     * @return
     */
    List<DictionaryEntity> selectDictionaryByParentCode(@Param("parentCode") String parentCode, @Param("name") String name);

}
